package com.ms.dsq_english.http;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class HttpInterceptor implements Interceptor
{
    @Override
    public Response intercept(Chain chain) throws IOException
    {
        Request oldRequest = chain.request();
        Request newRequest = oldRequest
                .newBuilder()
                .url(oldRequest
                        .url()
                        .newBuilder()
//                        .addQueryParameter("term", "android")
//                        .addQueryParameter("account", getAccount())
//                        .addQueryParameter("pid", getPid())
                        .build())
                .build();

        return chain.proceed(newRequest);
    }
}
